<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<title>demo</title>
	<meta name="keywords" content=""/>
	<meta name="description" content=""/>
	<meta name="viewport" content="width=device-width"/>
	<link rel="shortcut icon" href="img/touchicon.png"/>
	<link rel="stylesheet" href=""/>
	<style type="text/css">
		
	</style>
</head>
<body>
	<div id="picbox"></div>
	<script>
		var picBox = document.getElementById('picbox');
		var picObj = [
			{picSrc:'img/1.jpg',picTitle:'图片1',picAlt:'夕阳1',picWidth:'270px',picHeight:'180px'},
			{picSrc:'img/2.jpg',picTitle:'图片2',picAlt:'夕阳2',picWidth:'270px',picHeight:'180px'},
			{picSrc:'img/3.jpg',picTitle:'图片3',picAlt:'夕阳3',picWidth:'270px',picHeight:'180px'},
			{picSrc:'img/4.jpg',picTitle:'图片4',picAlt:'夕阳4',picWidth:'270px',picHeight:'180px'},
			{picSrc:'img/5.jpg',picTitle:'图片5',picAlt:'夕阳5',picWidth:'270px',picHeight:'180px'}
		];
		var s = '';
		for (var i = 0; i < picObj.length; i++) {
				s += '<img src="'+picObj[i].picSrc+'" alt="'+picObj[i].picAlt+'" title="'+picObj[i].picTitle+'" style="width:'+picObj[i].picWidth+';height:'+picObj[i].picHeight+';margin-left:10px;"/>' ;
		}
		picBox.innerHTML = s ;
	</script>
</body>
</html>